{strip}
<div style="width:360px;height:90%;">

	<div style="height:20px;">
		{$smarty.config.FileManager_path_label} <span id="spanIMpath">{$dir}</span>
	</div>
	<div id="divIMfiles" style="float:left;overflow:auto;width:340px;height:80%;border:1px solid #CCC;">
		<div style="margin:10px;">
			<form name="uploadForm" id="uploadForm" action="cgi_upload.pl?tmp_sid={$tmp_sid}&dir={$dir}&lite=1" method="post" enctype="multipart/form-data" target="frameUpload">
				{$smarty.config.FileManager_upload_advice_size}<br /><br />
			 	<input type="hidden" name="upload_range" id="upload_range" value="1" />
			 	<input type="file" name="upfile_0" id="upfile_0" /> <br />
			 <br />
			 &nbsp;<input type="submit" value="{$smarty.config.FileManager_upload_submit_label}" class="submitbtn"  onclick="progressWin('{$tmp_sid}','{$dir}');"/>
			</form>	
		</div>
	</div>
	<iframe name="frameUpload" id="frameUpload" style="height:1px;width:1px;display:none;" src="upload.php" ></iframe>
	<form name="FileManagerResponse">
		<input type="hidden" name="FileManagerReturnField" id="FileManagerReturnField" value="{$formfield}" />
		<input type="hidden" name="FileManagerReturnFieldType" id="FileManagerReturnFieldType" value="{$fieldtype}" />
		<input type="hidden" name="FileManagerRoot" id="FileManagerRoot" value="{$root_dir}" />
	</form>
</div>
{/strip}

